<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>家长端 - 登录</title>
  <link rel="stylesheet" href="../css/style.css">
</head>
<body>
<div class="login-container">
  <div class="login-box">
    <img src="../images/logo.png" alt="logo" class="logo">
    <h2>家长端登录</h2>
    <form id="parentLogin">
      <input type="text" name="parentId" placeholder="家长ID" required>
      <input type="password" name="parentPwd" placeholder="密码" required>
      <button type="submit">登录</button>
    </form>
    <p><a href="../index.html">返回主登录</a></p>
  </div>
</div>

<script>
  document.getElementById('parentLogin').addEventListener('submit', function(e) {
    e.preventDefault();
    window.location.href = 'view_letter.html';
  });
</script>
</body>
</html>
